package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cskaoyan.wordmemorize.dao.entity.UserVocBoundLogDO;
import org.apache.ibatis.annotations.Param;

public interface UserVocBoundLogMapper extends BaseMapper<UserVocBoundLogDO> {

    // 统计用户免费获取的总单词上限
    Integer sumFreeVocBound(@Param("userId") Long userId);

    // 统计用户购买的总单词上限
    Integer sumPayVocBound(@Param("userId") Long userId);

}
